package com.romotc.joyin.bean;

import java.util.List;

import com.romotc.oschina.bean.POJO;
import com.romotc.qqrobot.bean.json.QQUserFriendJsonObject;

public class CustGroup extends POJO {

	/**
	 * 客户分组名称 osc_cust_groups
	 */
	private String groupName;
	
	private int sort;
	
	/**
	 * 对应腾讯返回的index
	 */
	private int qqGrpIndex;
	
	
	/**
	 * 该客户分组对应的客服号码
	 */
	private int custServiceId;
	
	/**
	 * 客户分组备注
	 */
	
	private String note;

	private long uid;
	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}


	public int getCustServiceId() {
		return custServiceId;
	}

	public void setCustServiceId(int custServiceId) {
		this.custServiceId = custServiceId;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		CustGroup c = new CustGroup();
		c.Save();
	}

	/**
	 * 将腾讯返回的好友分组解析为客户分组
	 * @param jsonData
	 * @param reqSN
	 * @return
	 */
	public static List<CustGroup> buildCustGroups(
			QQUserFriendJsonObject jsonData, long reqSN) {
		return jsonData.toCustGroups();
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}


	public int getQqGrpIndex() {
		return qqGrpIndex;
	}

	public void setQqGrpIndex(int qqGrpIndex) {
		this.qqGrpIndex = qqGrpIndex;
	}


}
